package com.czp.infosharingplatformapp.repository;

import com.czp.infosharingplatformapp.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User, Long> {
    User findByUsername(String username);
    boolean existsByUsername(String username); // 新增方法，用于判断用户名是否存在
}